package cn.b.sky.mes.em.schedule;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import cn.b.sky.mes.em.service.MaintainTaskService;
import cn.b.sky.common.utils.SpringBeanUtil;
import cn.b.sky.schedule.job.BaseQuartzJobBean;
import cn.b.sky.schedule.model.TimedJobInfo;

/**
 * 
 * <strong>Title : MaintainTaskCycle.java<br>
 * </strong> <strong>Package : cn.b.sky.mes.em.schedule<br>
 * </strong> <strong>Description : </strong>周期型维护任务定时JOB<br>
 * <strong>Create on : 2015-11-10 下午02:55:05<br>
 * </strong>
 * <p>
 * 
 * @author zhaoxin01<br>
 * @version <strong>v1.0.0</strong><br>
 * <br>
 *          <strong>修改历史:</strong><br>
 *          修改人 | 修改日期 | 修改描述<br>
 *          -------------------------------------------<br>
 * <br>
 * <br>
 */
public class MaintainTaskCycleJobBean implements BaseQuartzJobBean {
  private static final Logger LOGGER = LoggerFactory.getLogger(MaintainTaskCycleJobBean.class);

  MaintainTaskService maintainTaskService = (MaintainTaskService) SpringBeanUtil.getBean("maintainTaskService");

  @Override
  public void executeManual(TimedJobInfo timeJobInfo) {
    LOGGER.info("--------周期型维护任务定时JOB开始---------");
    maintainTaskService.doCreateCycleMaintainTaskJob();
    LOGGER.info("--------周期型维护任务定时JOB结束---------");
  }
}
